-- GENERATED SPELL FOR [Coilfang Champion] --


function spell0_17957(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17957', 532, 1)
end

function spell1_17957(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17957', 6275, 1)
end

function spell2_17957(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17957', 30270, 1)
end

function Sorts_17957(pUnit, Event)
local choix_sorts_17957 = math.random(0, 2)
if choix_sorts_17957 == 0 then
pUnit:RegisterEvent('spell0_17957', 1, 1)
end
if choix_sorts_17957 == 1 then
pUnit:RegisterEvent('spell1_17957', 1, 1)
end
if choix_sorts_17957 == 2 then
pUnit:RegisterEvent('spell2_17957', 1, 1)
end
end

function mob17957_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17957', math.random(1500, 3000), 1)
end

function mob17957_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17957_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17957_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17957, 1, 'mob17957_Action')
RegisterUnitEvent(17957, 2, 'mob17957_Leave')
RegisterUnitEvent(17957, 3, 'mob17957_Kill')
RegisterUnitEvent(17957, 4, 'mob17957_Die')
